//
//  ListdetailTableViewCell.m
//  ThePrivateKitchen
//
//  Created by lirui on 16/1/25.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "ListdetailTableViewCell.h"

@implementation ListdetailTableViewCell

- (void)dealloc
{
    [_detail release];
    [_imgView release];
    [_title release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [ super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[ UILabel alloc] init];
       // _title.backgroundColor = [ UIColor greenColor];
        [self.contentView addSubview:_title];
        [_title release];
        
        self.imgView =[[ UIImageView alloc] init];
       // _imgView.backgroundColor =[ UIColor redColor];
        [self.contentView addSubview:_imgView];
        [_imgView release];
        
        self.detail = [[ UILabel alloc] init];
       // _detail.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_detail];
        _detail.font = [ UIFont systemFontOfSize:13];
        [_detail release];
        
    }
    return  self;
}
-(void)layoutSubviews
{    [super layoutSubviews];
    _imgView.frame = CGRectMake( WIDTH*10, HEIGHT*10, WIDTH *100, HEIGHT *100 );
    _title.frame= CGRectMake(_imgView.frame.size.width + 20, _imgView.frame.origin.y, WIDTH * 375, HEIGHT * 40);
    _detail.frame = CGRectMake(_title.frame.origin.x, _title.frame.origin.y +_title.frame.size.height , WIDTH *375, HEIGHT *30);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
